package com.common.transformer;

import com.applicationLayer.formbean.ListPathForm;
import com.common.entity.Path;

public class ListPathTransformer {

	public static ListPathForm Path_TO_ListPathForm(Path p,String arrival_town,String departure_town) {
		ListPathForm listPathForm = new ListPathForm();
		listPathForm.setArrival_town(arrival_town);
		listPathForm.setDepart_town(departure_town);
		listPathForm.setDate(p.getDate());
		listPathForm.setNb_places(p.getNb_places());
		listPathForm.setPrice(p.getPrice());
		listPathForm.setId_path(p.getId_path());
		return listPathForm;
	}

	
}
